#ifndef _TOOLS_H_
#define _TOOLS_H

#include <stdio.h>
#include <string>
#include <vector>
using namespace std;

#define BYTE unsigned char
#define WORD unsigned short
#define DWORD unsigned int

extern int read_line(FILE *fp, char *buf);
extern void create_dir(const char *filename);
extern bool file_exists(const char *filename);
extern bool str_end_with(const char *str, const char *end_str);
extern void remove_ext(const char *input, char *output);
extern void find_file_list(string path, vector<string> &file_list);
extern void find_file_list(string path, vector<string> &file_list, vector<unsigned long> &file_sizes);
extern int get_path_file_count(const char* path);
#endif